Component({
  options: {
    multipleSlots: true
  },
  /**
   * 组件的属性列表
   */
  properties: {
    placeholder: {
      type: String,
      value: '请输入...'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
   param: ''
  },

  /**
   * 组件的方法列表
   */
  methods: {
    inputHandler(e) {
      const {value} = e.detail
      this.setData({
        param:value
      })
      this.triggerEvent('change', value)
    },
    searchHandler(e){
      const {param} = this.data
      this.triggerEvent('searchEvent',param)
      this.triggerEvent('search',param)
    }
  }
})
